<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table border="1">
    <tr>
        <td>序号</td>
        <td>姓名</td>
        <td colspan="2" style="text-align: center">功能</td>
    </tr>
    {% for foo in author %}
    <tr>
        <td>{{ foo.id }}</td>
        <td>{{ foo.name }}</td>
        <td><a href="{% url 'showall' foo.id%}">查看</a></td>
        <td><a href="{% url 'delete' foo.id%}">删除</a></td>
    </tr>
    {% endfor %}
</table>
</body>
</html>